package org.class2334;

public class Example11 {
    public static void main(String[] args){
        CarFactory.producCar();
        CarFactory.producCar();
        CarFactory.producCar();
        System.out.println("当前生产线上汽车的总数量为" + CarFactory.getTotalCars());
    }
}